﻿using System;
using Model.Base;
namespace Model.AuthModel
{
    /// <summary>
    /// 通用组件，权限模型，模型层，权限对象
    /// 由模块和功能交叉组成的权限
    /// </summary>
    public class AuthInfo
    {
        /// <summary>
        /// 权限ID
        /// </summary>
        public int AuthID { get; set; }

        /// <summary>
        /// 模块对象
        /// </summary>
        public ModuleInfo Module { get; set; }

        /// <summary>
        /// 功能对象
        /// </summary>
        public FuncInfo Func { get; set; }
    }

    /// <summary>
    /// 权限模型，模型层，权限对象搜索对象
    /// </summary>
    public class AuthCondition : BaseCondition 
    {
        /// <summary>
        /// 模型类别编号
        /// </summary>
        public int ModuleTypeID { get; set; }

        /// <summary>
        /// 模块编号
        /// </summary>
        public int ModuleID { get; set; }

        /// <summary>
        /// 模块是否菜单显示
        /// </summary>
        public string ModuleMenu { get; set; }

        /// <summary>
        /// 功能是否菜单显示
        /// </summary>
        public string FuncMenu { get; set; }
    }
}
